package com.dream.testtubebaby_doctor.utils;

import java.util.Comparator;

import com.dream.testtubebaby_doctor.data.ToldPatientItem;

public class PinyinComparator implements Comparator<ToldPatientItem> {

	public int compare(ToldPatientItem o1, ToldPatientItem o2) {
		if (o2.getSortLetters().equals("#")) {
			return -1;
		} else if (o1.getSortLetters().equals("#")) {
			return 1;
		} else {
			return o1.getSortLetters().compareTo(o2.getSortLetters());
		}
	}
}
